package com.mju.feign.clients;

import com.mju.controller.common.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("receive-service")
public interface ReceiveClient {
    @PutMapping("/receive/completeReceive")
    public JsonResult completeReceive(@RequestParam("rid") Integer rid);

    @GetMapping("/receive/getStatusByRid/{rid}")
    public Integer getStatusByRid(@PathVariable("rid") Integer rid);
}
